import request1 from "@/api/request1";
import { apiClusterJava } from "@/api/root";
// 获取预览报告
export const getBuyReport = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(`${apiClusterJava}/api-occupation/activityH5/reports${url}`, data);
};
export const appAddShareRecord = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(`${apiClusterJava}/api-occupation/activityH5/appAddShareRecord${url}`, data);
};
export const reqGetChildByMajorId = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(
    `${apiClusterJava}/api-occupation/majorTypeController/getChildByMajorId${url}`,
    data
  );
};
// 获取报告列表
export const reqGetIndexReportList = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(`${apiClusterJava}/api-occupation/activityH5/getActivityList`, data);
};
export const reqClickReport = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(`${apiClusterJava}/api-occupation/activityH5/clickReport`, data);
};

export const reqGetMajorTreeById = (data) => {
  return request1.post(
    `${apiClusterJava}/api-occupation/majorTypeController/getMajorTreeById`,
    data
  );
};

export const reqGetHotWord = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(`${apiClusterJava}/api-occupation/activityH5/getHotWords`, data);
};
export const reqAppAddBrowseRecord = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(`${apiClusterJava}/api-occupation/activityH5/appAddBrowseRecord`, data);
};
// 分享赚钱start
export const reqGetShareConfig = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(`${apiClusterJava}/api-occupation/activityH5/shareConfig`, data);
};
export const reqGetShareMoneyPage = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(`${apiClusterJava}/api-occupation/activityH5/shareMoneyPage`, data);
};
export const reqGetShareMoneyInfo = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(`${apiClusterJava}/api-occupation/activityH5/shareMoneyInfo`, data);
};
export const reqGetShareMoneyUrl = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(`${apiClusterJava}/api-occupation/activityH5/getShareMoneyUrl`, data);
};
export const reqGetShareMoneySubRecord = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(`${apiClusterJava}/api-occupation/activityH5/shareMoneySubRecord`, data);
};
// 分享赚钱end

export const reqShareMoneyPageByTime = (data, personid) => {
  let url = request1.handleEntropy("", personid);
  return request1.post(
    `${apiClusterJava}/api-occupation/activityH5/shareMoneyPageByTime${url}`,
    data
  );
};
